#include "console.h"
#include "consoleImpl.h"

using namespace std;

Console::Console(const string& title, const int width, const int height) {
	impl_ = new ConsoleImpl(title, width, height);
};

Console::~Console() {
	delete impl_;
};

void Console::SetTitle(const string& title) {
	impl_->SetTitle(title);
}

void Console::SetSize(const int width, const int height) {
	impl_->SetSize(width, height);
}

int Console::WriteString(const int row, const int col, const string& value, const int attr, const int highlight_attr) {
	return impl_->WriteString(row, col, value, attr, highlight_attr);
}

float Console::TimeElapsedSinceLastFlush() const {
	return impl_->TimeElapsedSinceLastFlush();
}

void Console::ReadInputs(vector<Input>& inputs) {
	impl_->ReadInputs(inputs);
}

void Console::Flush() {
	impl_->Flush();
}
